package com.manage.system.api.feign;

import com.manage.common.core.constants.ServiceNameConstants;
import com.manage.common.core.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author zhangqing
 * @version V1.0
 * @description 在这里简单描述该类的作用
 * @date 11/3/2021 3:27 PM
 */
@FeignClient(value = ServiceNameConstants.SYSTEM_SERVICE,path = "/storage-config")
public interface RemoteStorageConfig {

    /**
     * 根据云存储code查询配置信息
     *
     * @param configCode 用户ID
     * @return 配置信息
     */
    @GetMapping(value = "/findByConfigCode/{configCode}")
    JsonResult findByConfigCode(@PathVariable("configCode") String configCode);
}
